package api

import (
	"github.com/gin-gonic/gin"
	"zhihu/api/haddle"
)

func Service(r *gin.Engine) {
	r.POST("/api/c/article/addArticle", haddle.AddArticle)                        //添加文章
	r.POST("/api/c/article/listArticle", haddle.ListArticle)                      //查看文章
	r.POST("/api/c/article/likeArticle", haddle.LikeArticle)                      //点赞文章
	r.POST("/api/c/article/ArticleReview", haddle.ArticleReview)                  //评论文章
	r.POST("/api/c/article/ArticleReviews", haddle.ArticleReviews)                //这次评论
	r.POST("/api/c/article/ArticleReviewlike", haddle.ArticleReviewslike)         //评论点赞
	r.POST("/api/c/article/ListArticleReviewlike", haddle.ListArticleReviewslike) //评论列表
}
